//
//  BleSingleHrmBpDataModel.h
//  HBSDKPro
//
//  Created by LRB_C on 2020/8/20.
//  Copyright © 2020 林瑞彬. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

//没有时间的模型 用于即时测量结果
@interface BleBpmModel : NSObject

@property (nonatomic,assign) NSInteger hrm;
@property (nonatomic,assign) NSInteger sbp;
@property (nonatomic,assign) NSInteger dbp;
-(instancetype)initWithData:(NSData*)data;
@end


//单个历史数据模型
@interface BleSingleHrmBpDataModel : NSObject
@property (nonatomic,assign) NSInteger hour;
@property (nonatomic,assign) NSInteger min;
@property (nonatomic,assign) NSInteger hrm;
@property (nonatomic,assign) NSInteger sbp;
@property (nonatomic,assign) NSInteger dbp;
@property (nonatomic,assign) NSInteger rsv1;
@property (nonatomic,assign) NSInteger rsv2;
@property (nonatomic,assign) NSInteger rsv3;

//八个字节 分别为 hour  min hrm sbp dbp rsv1 rsv2 rsv3
-(instancetype)initWithEightByteData:(NSData*)data;
@end

NS_ASSUME_NONNULL_END

NS_ASSUME_NONNULL_BEGIN

//一天的心率血压数据模型
@interface BleCacheHrmBpDataModel : NSObject

@property (nonatomic,strong) NSString *dateStr;
@property (nonatomic,strong) NSArray <BleSingleHrmBpDataModel*> *hrmBpModelDataArray;//模型数据
-(instancetype)initWithDateStr:(NSString*)dateStr andDataModelArr:(NSArray*)dataModelArr;

NS_ASSUME_NONNULL_END
@end
